package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.SalaryStatistics;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 薪资统计视图对象 hr_salary_statistics
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SalaryStatistics.class)
public class SalaryStatisticsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 统计ID
     */
    @ExcelProperty(value = "统计ID")
    private Long statisticsId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 统计年月(yyyyMM格式)
     */
    @ExcelProperty(value = "统计年月")
    private String yearMonth;

    /**
     * 部门
     */
    private Long department;

    @ExcelProperty(value = "部门")
    private String departmentName;

    /**
     * 员工总数
     */
    @ExcelProperty(value = "员工总数")
    private Integer employeeCount;

    /**
     * 应发工资总额
     */
    @ExcelProperty(value = "应发工资总额")
    private BigDecimal grossSalaryTotal;

    /**
     * 实发工资总额
     */
    @ExcelProperty(value = "实发工资总额")
    private BigDecimal netSalaryTotal;

    /**
     * 平均应发工资
     */
    @ExcelProperty(value = "平均应发工资")
    private BigDecimal avgGrossSalary;

    /**
     * 平均实发工资
     */
    @ExcelProperty(value = "平均实发工资")
    private BigDecimal avgNetSalary;

    /**
     * 最高应发工资
     */
    @ExcelProperty(value = "最高应发工资")
    private BigDecimal maxGrossSalary;

    /**
     * 最低应发工资
     */
    @ExcelProperty(value = "最低应发工资")
    private BigDecimal minGrossSalary;

    /**
     * 社保个人扣款总额
     */
    @ExcelProperty(value = "社保个人扣款总额")
    private BigDecimal socialInsurancePersonalTotal;

    /**
     * 公积金个人扣款总额
     */
    @ExcelProperty(value = "公积金个人扣款总额")
    private BigDecimal housingFundPersonalTotal;

    /**
     * 个人所得税总额
     */
    @ExcelProperty(value = "个人所得税总额")
    private BigDecimal personalTaxTotal;

    /**
     * 状态(0正常 1封存)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
